package com.tsll.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author: Tian
 * @version: 1.0
 * @since: 1.0
 * @date: 2024/6/2/9:15
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BorrowVo {
    private Integer bookId;
    private Integer userId;
    private Integer status;
    private Integer examinestatus;
    private Integer score;
    private String reback;
    @DateTimeFormat(pattern = "yyyy-MMM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date borrowDatetime;
    @DateTimeFormat(pattern = "yyyy-MMM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private  Date returnDatetime;
}
